import requestProxy from '@/utils/request';

const { request } = requestProxy;

// 首页详情
export function getHome() {
  return request({
    url: 'admin/homePage/data',
    method: 'get'
  });
}

// 首页详情-数据看版
export function getHomeData(params) {
  return request({
    url: 'admin/homePage/dataBrand',
    method: 'get',
    params
  });
}

// 首页详情-快捷入口展示
export function getQuickEntry() {
  return request({
    url: 'admin/homePage/quickEntry',
    method: 'get'
  });
}

// 首页详情-快捷入口新增
export function getQuickEntryAdd(data) {
  return request({
    url: 'admin/homePage/quickEntry/add',
    method: 'put',
    data
  });
}

// 首页
export function getDataInfo(data) {
  return request({
    url: 'admin/homePage/dataBase',
    method: 'get',
    data
  });
}

// 首页
export function getCalendarData(params) {
  return request({
    url: 'admin/homePage/dataBrand/info',
    method: 'get',
    params
  });
}
